home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cracking 2
/
Cracking II..iso
/
Kompresni & kodovaci programy
/
ucl-0.91
/
B
/
win32
/
mingw.bat
< prev
next >
Wrap
DOS Batch File
|
2000-02-24
|
783b
|
33 lines
rem /* Windows 32 bit (LIB) - Mingw32 GNU-Win32 + gcc
rem * a very simple make driver
rem * Copyright (C) 1996-2000 Markus F.X.J. Oberhumer
rem */
@if "%UCL_ECHO%"=="n" echo off
set CC=gcc
REM set CC=gcc -mno-cygwin
set CFLAGS=-Iinclude -O2 -fomit-frame-pointer -Wall -W
set ASFLAGS=-x assembler-with-cpp -Wall
set MYLIB=libucl.a
del *.o > nul
echo Compiling, please be patient...
%CC% -x c %CFLAGS% -c src/*.c
@if errorlevel 1 goto error
if exist %MYLIB% del %MYLIB%
ar rcs %MYLIB% *.o
@if errorlevel 1 goto error
%CC% %CFLAGS% -o simple.exe examples/simple.c %MYLIB%
@if errorlevel 1 goto error
%CC% %CFLAGS% -o uclpack.exe examples/uclpack.c %MYLIB%
@if errorlevel 1 goto error
echo Done.
goto end
:error
echo error!
:end
@call b\unset.bat